package code;

public class MovableCircle implements Movable{
	private int radius;
	private MovablePoint center;
	public MovableCircle(int x, int y, int xSpeed, int ySpeed, int radius){
		center=new MovablePoint(x, y, xSpeed, ySpeed);
		this.radius=radius;
	}
	public String toString(){
		String str="x:"+center.x+",xSpeed:"+center.xSpeed+",y:"+center.y+",ySpeed:"+center.ySpeed;
		return str;
	}
	
	public void moveUp() {
		center.y+=center.ySpeed;
	}
	
	public void moveDown() {
		center.y-=center.ySpeed;
		
	}
	
	public void moveLeft() {
		center.x-=center.xSpeed;
		
	}
	
	public void moveRight() {
		center.x+=center.xSpeed;
	}
}
